

<!DOCTYPE html>
<html lang="zh-CN" data-default-color-scheme=&#34;auto&#34;>



<head>
  <meta charset="UTF-8">
  <link rel="apple-touch-icon" sizes="76x76" href="/blog/img/favicon.png">
  <link rel="icon" href="/blog/img/favicon.jpg">
  <meta name="viewport"
        content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, shrink-to-fit=no">
  <meta http-equiv="x-ua-compatible" content="ie=edge">
  
  <meta name="theme-color" content="#2f4154">
  <meta name="description" content="">
  <meta name="author" content="John Doe">
  <meta name="keywords" content="">
  
  <title>ITaylorfan的小站</title>

  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" />



<!-- 主题依赖的图标库，不要自行修改 -->

<link rel="stylesheet" href="//at.alicdn.com/t/font_1749284_ba1fz6golrf.css">



<link rel="stylesheet" href="//at.alicdn.com/t/font_1736178_kmeydafke9r.css">


<link  rel="stylesheet" href="/blog/css/main.css" />

<!-- 自定义样式保持在最底部 -->


  <script id="fluid-configs">
    var Fluid = window.Fluid || {};
    var CONFIG = {"hostname":"itaylorfan.gitee.io","root":"/blog/","version":"1.8.11","typing":{"enable":true,"typeSpeed":70,"cursorChar":"❤","loop":false},"anchorjs":{"enable":true,"element":"h1,h2,h3,h4,h5,h6","placement":"right","visible":"hover","icon":""},"progressbar":{"enable":true,"height_px":3,"color":"#29d","options":{"showSpinner":false,"trickleSpeed":100}},"copy_btn":true,"image_zoom":{"enable":true,"img_url_replace":["",""]},"toc":{"enable":true,"headingSelector":"h1,h2,h3,h4,h5,h6","collapseDepth":0},"lazyload":{"enable":true,"loading_img":"/img/loading.gif","onlypost":false,"offset_factor":2},"web_analytics":{"enable":false,"baidu":null,"google":null,"gtag":null,"tencent":{"sid":null,"cid":null},"woyaola":null,"cnzz":null,"leancloud":{"app_id":null,"app_key":null,"server_url":null}},"search_path":"/local-search.xml"};
  </script>
  <script  src="/blog/js/utils.js" ></script>
  <script  src="/blog/js/color-schema.js" ></script>
<meta name="generator" content="Hexo 5.4.0"></head>


<body>
  <header style="height: 100vh;">
    <nav id="navbar" class="navbar fixed-top  navbar-expand-lg navbar-dark scrolling-navbar">
  <div class="container">
    <a class="navbar-brand"
       href="/blog/">&nbsp;<strong>ITaylorfan</strong>&nbsp;</a>

    <button id="navbar-toggler-btn" class="navbar-toggler" type="button" data-toggle="collapse"
            data-target="#navbarSupportedContent"
            aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
      <div class="animated-icon"><span></span><span></span><span></span></div>
    </button>

    <!-- Collapsible content -->
    <div class="collapse navbar-collapse" id="navbarSupportedContent">
      <ul class="navbar-nav ml-auto text-center">
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/">
                <i class="iconfont icon-home-fill"></i>
                首页
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/archives/">
                <i class="iconfont icon-archive-fill"></i>
                归档
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/categories/">
                <i class="iconfont icon-category-fill"></i>
                分类
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/tags/">
                <i class="iconfont icon-tags-fill"></i>
                标签
              </a>
            </li>
          
        
          
          
          
          
            <li class="nav-item">
              <a class="nav-link" href="/blog/about/">
                <i class="iconfont icon-user-fill"></i>
                关于
              </a>
            </li>
          
        
        
          <li class="nav-item" id="search-btn">
            <a class="nav-link" target="_self" data-toggle="modal" data-target="#modalSearch">&nbsp;<i
                class="iconfont icon-search"></i>&nbsp;</a>
          </li>
        
        
          <li class="nav-item" id="color-toggle-btn">
            <a class="nav-link" target="_self">&nbsp;<i
                class="iconfont icon-dark" id="color-toggle-icon"></i>&nbsp;</a>
          </li>
        
      </ul>
    </div>
  </div>
</nav>

    <div class="banner" id="banner" parallax=true
         style="background: url('/blog/img/TS-banner.jpg') no-repeat center center;
           background-size: cover;">
      <div class="full-bg-img">
        <div class="mask flex-center" style="background-color: rgba(0, 0, 0, 0.3)">
          <div class="page-header text-center fade-in-up">
            <span class="h2" id="subtitle" title="今天你撸代码了吗">
              
            </span>

            
          </div>

          
            <div class="scroll-down-bar">
              <i class="iconfont icon-arrowdown"></i>
            </div>
          
        </div>
      </div>
    </div>
  </header>

  <main>
    
      <div class="container nopadding-x-md">
        <div class="py-5" id="board"
          style=margin-top:0>
          
          <div class="container">
            <div class="row">
              <div class="col-12 col-md-10 m-auto">
                


  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/12/06/%E7%9F%A5%E8%AF%86%E7%82%B9-%E4%BE%8B%E9%A2%98-%E6%8A%80%E5%B7%A7/" target="_self">
          <img src="/blog/article/18.jpg" srcset="/blog/img/loading.gif" lazyload alt="知识点-例题-技巧">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/12/06/%E7%9F%A5%E8%AF%86%E7%82%B9-%E4%BE%8B%E9%A2%98-%E6%8A%80%E5%B7%A7/" target="_self">
          知识点-例题-技巧
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/12/06/%E7%9F%A5%E8%AF%86%E7%82%B9-%E4%BE%8B%E9%A2%98-%E6%8A%80%E5%B7%A7/" target="_self">
          
          
            
          
          一、案例题1.对象运算操作的练习1234567console.log([] + []);	//&quot;&quot;	[].toString()==&quot;&quot;console.log(&#123;&#125; + []);	//[Object Object]	&#123;&#125;.toString()==[Object Object]	console.log([] == ![])
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-12-06 11:02" pubdate>
              2021-12-06
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/CSS/">CSS</a>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/MySQL/">MySQL</a>
            
              <a href="/blog/tags/Vue/">Vue</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/12/06/%E5%AE%BF%E8%88%8D%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="/blog/article/17.jpg" srcset="/blog/img/loading.gif" lazyload alt="宿舍管理系统开发笔记">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/12/06/%E5%AE%BF%E8%88%8D%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_self">
          宿舍管理系统开发笔记
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/12/06/%E5%AE%BF%E8%88%8D%E7%AE%A1%E7%90%86%E7%B3%BB%E7%BB%9F%E5%BC%80%E5%8F%91%E7%AC%94%E8%AE%B0/" target="_self">
          
          
            
          
          
项目名称：宿舍管理系统 
项目平台：ndoejs+mysql
项目技术：express


项目架构图
一、初始化项目1$ npm init --yes

二、安装项目依赖1$ npm install mysql express --save

三、创建express项目123456789const express = require(&quot;express&quot;);const htt
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-12-06 10:51" pubdate>
              2021-12-06
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/MySQL/">MySQL</a>
            
              <a href="/blog/tags/Sass/">Sass</a>
            
              <a href="/blog/tags/Vue/">Vue</a>
            
              <a href="/blog/tags/Express/">Express</a>
            
              <a href="/blog/tags/Node/">Node</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/12/02/webpack%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="/blog/article/16.jpg" srcset="/blog/img/loading.gif" lazyload alt="webpack">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/12/02/webpack%E7%AC%94%E8%AE%B0/" target="_self">
          webpack
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/12/02/webpack%E7%AC%94%E8%AE%B0/" target="_self">
          
          
            
          
          
经过我们一期项目以后，我们可以在项目当中发现一些问题

一个网页当中的CSS文件及JS文件比较多，我们都需要通过script或link标签去导入，这样会导致页面请求次数过多

因为是在浏览器运行，我们的JS代码不能使用最新的语法，只能使用ES5去进行，因为要考虑到兼容性

我们的页面里面会有很多的CSS3的代码，这些代码都是有兼容性的，需要添加特定的前缀来实现效果

-ms-微软的浏览器
-mo
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-12-02 09:10" pubdate>
              2021-12-02
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/HTML/">HTML</a>
            
              <a href="/blog/tags/CSS/">CSS</a>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/Sass/">Sass</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/11/30/%E5%89%8D%E7%AB%AF%E8%BF%9B%E9%98%B6-Vue%E5%9F%BA%E7%A1%80/" target="_self">
          <img src="/blog/article/15.jpg" srcset="/blog/img/loading.gif" lazyload alt="Vue基础">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/11/30/%E5%89%8D%E7%AB%AF%E8%BF%9B%E9%98%B6-Vue%E5%9F%BA%E7%A1%80/" target="_self">
          Vue基础
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/11/30/%E5%89%8D%E7%AB%AF%E8%BF%9B%E9%98%B6-Vue%E5%9F%BA%E7%A1%80/" target="_self">
          
          
            
          
          1.Vue基础一、vue概念Vue.js是一套构建用户界面的渐进式框架。与其他重量级框架不同的是，Vue采用自底向上增量开发的设计。Vue 的核心库只关注视图层，并且非常容易学习，非常容易与其它库或已有项目整合。另一方面，Vue 完全有能力驱动采用单文件组件和Vue生态系统支持的库开发的复杂单页应用（单页面开发SPA）。

渐进式框架：可以理解为上手简单，入门简单，但是可以渐近提高框架等级
视图层
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-11-30 09:00" pubdate>
              2021-11-30
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/CSS/">CSS</a>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/ES6/">ES6</a>
            
              <a href="/blog/tags/CSS3/">CSS3</a>
            
              <a href="/blog/tags/Sass/">Sass</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/11/17/Sass-css%E6%8B%93%E5%B1%95%E8%AF%AD%E8%A8%80/" target="_self">
          <img src="/blog/article/14.jpg" srcset="/blog/img/loading.gif" lazyload alt="Sass-css拓展语言">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/11/17/Sass-css%E6%8B%93%E5%B1%95%E8%AF%AD%E8%A8%80/" target="_self">
          Sass-css拓展语言
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/11/17/Sass-css%E6%8B%93%E5%B1%95%E8%AF%AD%E8%A8%80/" target="_self">
          
          
            
          
          
世界上最成熟、最稳定、最强大的专业级CSS扩展语言！

目前主流的可编译CSS语言有以下几种

less，它是第一代编译型语言，功能强大，但是编译效率并不高，后期已经慢慢不使用了
sass，它是第二代编译型语言，相较于less来说多了很多的功能，效率也很高，但是对于平台的依赖性比较强
stylus，但简单，但是不友好 ，它的语言虽然简洁，但是书写起来容易让人产生不好的感觉

上面的三种语言所实现
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-11-17 08:36" pubdate>
              2021-11-17
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/CSS/">CSS</a>
            
              <a href="/blog/tags/CSS3/">CSS3</a>
            
              <a href="/blog/tags/Sass/">Sass</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/11/16/Node.js%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="/blog/article/13.jpg" srcset="/blog/img/loading.gif" lazyload alt="Node.js笔记">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/11/16/Node.js%E7%AC%94%E8%AE%B0/" target="_self">
          Node.js笔记
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/11/16/Node.js%E7%AC%94%E8%AE%B0/" target="_self">
          
          
            
          
          1.介绍与安装关于Node.jsnode.js其实可以理解为ECMAScript在服务器上面的运行环境。
我们以前在学习javascript总有一个概念，javascript运行在浏览器的网页里面，它必须依托于网页存在，没有网页就没有它。但是后期人们将javascript 运行在浏览器上面的一个环境chrome V8移植到了服务器上面，这样就可以保证我们的js代码能够在本地的服务器上面运行了，而不
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-11-16 08:38" pubdate>
              2021-11-16
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%90%8E%E7%AB%AF%E7%AC%94%E8%AE%B0/">后端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/ES6/">ES6</a>
            
              <a href="/blog/tags/MySQL/">MySQL</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/11/16/MySQL%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="/blog/article/12.jpg" srcset="/blog/img/loading.gif" lazyload alt="MySQL笔记">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/11/16/MySQL%E7%AC%94%E8%AE%B0/" target="_self">
          MySQL笔记
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/11/16/MySQL%E7%AC%94%E8%AE%B0/" target="_self">
          
          
            
          
          MySql基础MySql是一种数据库，现在的MySql数据库是把数据存储在服务器上面，它是一个网络型数据库，可以同时为多个人进行服务。
mysql轻便，跨平台，所以我们优先学习这一种数据
MySql是一种关系型的服务器数据库，它可以使用面向对象的思维去理解它，运用它
在学习MySql之前，一定要先了解数据库的概念
数据库的概念数据库其实与我们日常生活当中所使用的Excel很像。在一个Excel文件
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-11-16 08:35" pubdate>
              2021-11-16
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%90%8E%E7%AB%AF%E7%AC%94%E8%AE%B0/">后端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/MySQL/">MySQL</a>
            
              <a href="/blog/tags/SQL/">SQL</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/10/16/ES6%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="/blog/article/11.jpg" srcset="/blog/img/loading.gif" lazyload alt="ES6笔记">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/10/16/ES6%E7%AC%94%E8%AE%B0/" target="_self">
          ES6笔记
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/10/16/ES6%E7%AC%94%E8%AE%B0/" target="_self">
          
          
            
          
          前端进阶-JavaScript-ES6之前学过ES5，ES的全称叫ECMAScript，它是JavaScript的一部分，主要讲提变量，数据类型，流程控制，函数，面向对象语法基础等
ES6全称叫ECMAScript6，也叫ECMAScript 2015，是在2015年定型发布的，它是新一代的JS的语法标准，只涉及到ES的部分，不涉及任何DOM与BOM
ES6主要的技术如下

变量，常量
取值与赋值
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-10-16 08:15" pubdate>
              2021-10-16
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/ES6/">ES6</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/10/06/JQuery%E7%AC%94%E8%AE%B0/" target="_self">
          <img src="/blog/article/Lily.jpg" srcset="/blog/img/loading.gif" lazyload alt="JQuery笔记">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/10/06/JQuery%E7%AC%94%E8%AE%B0/" target="_self">
          JQuery笔记
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/10/06/JQuery%E7%AC%94%E8%AE%B0/" target="_self">
          
          
            
          
          前端基础-JQueryjQuery是一个快速、简洁的JavaScript框架，是继Prototype之后又一个优秀的JavaScript代码库（框架）于2006年1月由[John Resig](https://baike.baidu.com/item/John Resig/6336344)发布。jQuery设计的宗旨是“write Less，Do More”，即倡导写更少的代码，做更多的事情。它封
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-10-06 19:38" pubdate>
              2021-10-06
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
              <a href="/blog/tags/JQuery/">JQuery</a>
            
          </div>
        
      </div>
    </article>
  </div>

  <div class="row mx-auto index-card">
    
    
      <div class="col-12 col-md-4 m-auto index-img">
        <a href="/blog/2021/09/29/JavaScript%E7%AC%94%E8%AE%B0-BOM/" target="_self">
          <img src="/blog/article/Billie.jpg" srcset="/blog/img/loading.gif" lazyload alt="JavaScript笔记-BOM">
        </a>
      </div>
    
    <article class="col-12 col-md-8 mx-auto index-info">
      <h1 class="index-header">
        
        <a href="/blog/2021/09/29/JavaScript%E7%AC%94%E8%AE%B0-BOM/" target="_self">
          JavaScript笔记-BOM
        </a>
      </h1>

      <p class="index-excerpt">
        <a href="/blog/2021/09/29/JavaScript%E7%AC%94%E8%AE%B0-BOM/" target="_self">
          
          
            
          
          JavaScript-BOMBOM的全称叫Browser Object Model浏览器编程，它主要是对浏览器的相关API进行操作与处理
1.locationlocation指的是浏览器里面的地址栏

hostname代表当前网页的主机名

port代表当前网页的端口号
http默认的端口号是80，https默认的端口号是443

host代表当前网页的主机地址，它包含了hostname与port
        </a>
      </p>

      <div class="index-btm post-metas">
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-date"></i>
            <time datetime="2021-09-29 18:59" pubdate>
              2021-09-29
            </time>
          </div>
        
        
          <div class="post-meta mr-3">
            <i class="iconfont icon-category"></i>
            
              <a href="/blog/categories/%E5%89%8D%E7%AB%AF%E7%AC%94%E8%AE%B0/">前端笔记</a>
            
          </div>
        
        
          <div class="post-meta">
            <i class="iconfont icon-tags"></i>
            
              <a href="/blog/tags/JavaScript/">JavaScript</a>
            
          </div>
        
      </div>
    </article>
  </div>



  <nav aria-label="navigation">
    <span class="pagination" id="pagination">
      <span class="page-number current">1</span><a class="page-number" href="/blog/page/2/#board">2</a><a class="extend next" rel="next" href="/blog/page/2/#board"><i class="iconfont icon-arrowright"></i></a>
    </span>
  </nav>



              </div>
            </div>
          </div>
        </div>
      </div>
    

    
      <a id="scroll-top-button" href="#" role="button">
        <i class="iconfont icon-arrowup" aria-hidden="true"></i>
      </a>
    

    
      <div class="modal fade" id="modalSearch" tabindex="-1" role="dialog" aria-labelledby="ModalLabel"
     aria-hidden="true">
  <div class="modal-dialog modal-dialog-scrollable modal-lg" role="document">
    <div class="modal-content">
      <div class="modal-header text-center">
        <h4 class="modal-title w-100 font-weight-bold">搜索</h4>
        <button type="button" id="local-search-close" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body mx-3">
        <div class="md-form mb-5">
          <input type="text" id="local-search-input" class="form-control validate">
          <label data-error="x" data-success="v"
                 for="local-search-input">关键词</label>
        </div>
        <div class="list-group" id="local-search-result"></div>
      </div>
    </div>
  </div>
</div>
    

    
  </main>

  <footer class="text-center mt-5 py-3">
  <div class="footer-content">
     <a href="https://hexo.io" target="_blank" rel="nofollow noopener"><span>Hexo</span></a> <i class="iconfont icon-love"></i> <a href="https://github.com/fluid-dev/hexo-theme-fluid" target="_blank" rel="nofollow noopener"><span>Fluid</span></a> 
  </div>
  

  

  
</footer>


  <!-- SCRIPTS -->
  
  <script  src="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js" ></script>
  <link  rel="stylesheet" href="https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.css" />

  <script>
    NProgress.configure({"showSpinner":false,"trickleSpeed":100})
    NProgress.start()
    window.addEventListener('load', function() {
      NProgress.done();
    })
  </script>


<script  src="https://cdn.jsdelivr.net/npm/jquery@3.6.0/dist/jquery.min.js" ></script>
<script  src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.min.js" ></script>
<script  src="/blog/js/events.js" ></script>
<script  src="/blog/js/plugins.js" ></script>

<!-- Plugins -->


  
    <script  src="/blog/js/img-lazyload.js" ></script>
  



  









  <script defer src="https://cdn.jsdelivr.net/npm/clipboard@2.0.8/dist/clipboard.min.js" ></script>



  <script  src="/blog/js/local-search.js" ></script>






  <script  src="https://cdn.jsdelivr.net/npm/typed.js@2.0.12/lib/typed.min.js" ></script>
  <script>
    (function (window, document) {
      var typing = Fluid.plugins.typing;
      var title = document.getElementById('subtitle').title;
      
      typing(title)
      
    })(window, document);
  </script>















<!-- 主题的启动项 保持在最底部 -->
<script  src="/blog/js/boot.js" ></script>


</body>
</html>
